﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BesAsm.Emgaats.Core;
using BesAsm.Emgaats.Core.Commands;
using BesAsm.Emgaats.ModelBuilder;

namespace BesAsm.Emgaats.ModelBuilderUI.Commands
{
  public class DeployHydrologyCommand : IEmgaatsExtensionCommand
  {
    private string _fileName;
    private Model _model;

    public DeployHydrologyCommand(Model model, string fileName)
    {
      _model = model;
      _fileName = fileName;
    }

    #region IEmgaatsExtensionCommand Members

    public void Execute()
    {
      HydrologyBuilder hb = new HydrologyBuilder(_model);
      hb.DeployHydrology(_fileName);
    }

    public void Undo()
    {
      throw new NotImplementedException();
    }

    #endregion
  }
}
